home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FGL304E.ZIP;1 / EXPAS.ARJ / FGDOC / EXAMPLES / PASCAL / 09-02.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1994-01-24  |  448 b   |  24 lines

  1. program main;
  2. uses fgmain, fgpcx;
  3.  
  4. var
  5.   mode, status : integer;
  6.   header : array [1..128] of byte;
  7.  
  8. begin
  9.   status := fg_pcxhead('CORAL.PCX'+chr(0),header);
  10.   if (status = -1) then
  11.   begin
  12.     writeln('Can''t open CORAL.PCX.');
  13.     exit;
  14.   end
  15.   else if (status = -2) then
  16.   begin
  17.     writeln('CORAL.PCX is not a PCX file.');
  18.     exit;
  19.   end;
  20.  
  21.   mode := fg_pcxmode(header);
  22.   writeln('Optimal display mode is ',mode);
  23. end.
  24.